layui.use(['laypage', 'layer'], function(){
    var laypage = layui.laypage
    ,layer = layui.layer;
       //完整功能
    laypage.render({
      elem: 'demo7'
      ,count: 100
      ,layout: ['count', 'prev', 'page', 'next', 'limit', 'refresh', 'skip']
      ,jump: function(obj){
        console.log(obj)
      }
    });
  
    laypage.render({
      elem: 'demo20'
      ,count: data.length
      ,jump: function(obj){
        //模拟渲染
        document.getElementById('biuuu_city_list').innerHTML = function(){
          var arr = []
          ,thisData = data.concat().splice(obj.curr*obj.limit - obj.limit, obj.limit);
          layui.each(thisData, function(index, item){
            arr.push('<li>'+ item +'</li>');
          });
          return arr.join('');
        }();
      }
    });
    
  });